package net.hn.hnms.biz.indicator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * @author 智呈物联 nzw
 * @date 2022/8/24
 */
@Data
@ApiModel(value="SysIndicatorRoles对象", description="灾害指标规程表")
@Entity
@TableName("sys_indicator_roles")
@Table(name = "sys_indicator_roles")
public class SysIndicatorRoles {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE)
    @SequenceGenerator(name = "indicator_id")
    private Long id;

    private Long indicatorId;

    @ApiModelProperty(value = "规程标题")
    private String title;

    @ApiModelProperty(value = "规程内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date createTime;
}
